﻿#ifndef VIDEO_PAGE_H
#define VIDEO_PAGE_H

#include <QWidget>

#include "devlist/page_deviceList.h"
#include "realtime/page_realtime.h"
#include "playback/page_playback.h"

class QStackedWidget;
class QPushButton;

class videoPage : public QWidget
{
    Q_OBJECT

public:
    explicit videoPage(QWidget *parent = 0);
    virtual ~videoPage();

public:
    void setRealtime(bool realtime);    
    void fullScreen(bool full);

protected:
    void resizeEvent(QResizeEvent *ev);
    //bool eventFilter(QObject *watched, QEvent *event);

private:
    deviceListPage* m_devlistPage;
    QStackedWidget* m_stackedWidget;
    playbackPage* m_playbackPage;
    realtimePage* m_realtimePage;
    QPushButton*  m_letfHideBtn;
    QPushButton*  m_rightHideBtn;

    bool m_bReal;
 
private slots:
    void initForm();
    void btn_move();
    void on_letfHide_click();
    void on_rightHide_click();

};

#endif // VIDEO_PAGE_H
